package com.java.onlineshop.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * @program: onlineshop
 * @description: 我的订单
 * @author: ShuangChenYue
 * @create: 2021-06-09 20:28
 **/
public class MyOrder
{
    private Integer myorderid;
    private String name;
    private double cost;

    private User user;
    private PayWay payWay;
    private OrderStatus orderStatus;

    private Set<OrderItem> orderItems = new HashSet<OrderItem>();
    /*
    在往myorder表中插入数据时，同时往orderitem表中插，而数据就存在该set集合中
    */

    public Integer getMyorderid()
    {
        return myorderid;
    }

    public void setMyorderid(Integer myorderid)
    {
        this.myorderid = myorderid;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public double getCost()
    {
        return cost;
    }

    public void setCost(double cost)
    {
        this.cost = cost;
    }

    public User getUser()
    {
        return user;
    }

    public void setUser(User user)
    {
        this.user = user;
    }

    public PayWay getPayWay()
    {
        return payWay;
    }

    public void setPayWay(PayWay payWay)
    {
        this.payWay = payWay;
    }

    public OrderStatus getOrderStatus()
    {
        return orderStatus;
    }

    public void setOrderStatus(OrderStatus orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Set<OrderItem> getOrderItems()
    {
        return orderItems;
    }

    public void setOrderItems(Set<OrderItem> orderItems)
    {
        this.orderItems = orderItems;
    }
}
